@import '~assets/common/css/mixin.scss';
body,
div,
span,
header,
footer,
nav,
section,
aside,
article,
ul,
dl,
dt,
dd,
li,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
i,
b,
textarea,
button,
input,
select,
figure,
figcaption {
    padding: 0;
    margin: 0;
    list-style: none;
    font-style: normal;
    text-decoration: none;
    border: none;
    font-weight: normal;
    font-family: -apple-system, Helvetica, sans-serif;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    &:hover {
        outline: none;
    }
}


/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background-color: #f5f5f5;
}


/*定义滚动条轨道 内阴影+圆角*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
    border-radius: 10px;
    background-color: #f5f5f5;
}


/*定义滑块 内阴影+圆角*/

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #555;
}

input[type='button'],
input[type='submit'],
input[type='search'],
input[type='reset'] {
    -webkit-appearance: none;
}

textarea {
    -webkit-appearance: none;
}

html,
body,
#app {
    height: 100%;
    width: 100%;
    background-color: #f5f5f5;
}

#app {
    min-height: 10rem;
    max-width: 10rem;
    margin: 0 auto;
    position: relative;
}

._v-content .pull-to-refresh-layer .spinner-holder {
    // visibility: hidden;
}

._v-content {
    background: #f0f3f5;
}

._v-content .pull-to-refresh-layer {
    background-image: url('~assets/common/images/loading.gif');
    background-repeat: no-repeat;
    background-position: 100px 10px;
    background-size: 40px 40px;
    opacity: 0.3;
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: all 0.15s linear;
    -webkit-transition: all 0.15s linear;
}

._v-content .pull-to-refresh-layer.active {
    opacity: 1;
    -webkit-transform: scale(1.35);
    transform: scale(1.35);
    span {
        span {
            -webkit-transform: scale(0.7) !important;
            transform: scale(0.7) !important;
        }
    }
}

.loadmore-top,
.loadmore-bottom {
    margin-top: -50px;
}

.loadmore-top {
    text-align: center;
    height: 50px;
    line-height: 50px;
    svg {
        display: none;
    }
    >div {
        background-image: url('~assets/common/images/loading.gif');
        background-repeat: no-repeat;
        background-size: 40px 40px;
        -webkit-transform: scale(1);
        transform: scale(1);
        background-position: 100px 5px;
        transition: all 0.15s linear;
        -webkit-transition: all 0.15s linear;
    }
    .pull {
        background-position: 100px 5px;
        opacity: 0.3;
    }
    .drop {
        opacity: 1;
        -webkit-transform: scale(1.4);
        transform: scale(1.4);
        background-position: 110px 0px;
        span {
            -webkit-transform: scale(0.7) !important;
            transform: scale(0.7) !important;
        }
    }
}

//单选框
.select-icon {
    background: url('~assets/common/images/check1.png') no-repeat !important;
    background-size: 100% 100% !important;
}

.mint-toast,
.mint-indicator {
    z-index: 99999999999999999 !important;
}

//模态框
.modal-popup {
    width: 100%;
    height: 100%;
    max-width: 10rem;
    min-width: 10rem;
}

.icon-select-default {
    // display: table;
    // width: 20px;
    // height: 20px;
    font-size: 18px;
    color: $gray;
}

.icon-select {
    font-size: 18px;
    color: $orange;
}

//消息框
.mint-msgbox-message {
    color: #333;
    margin: 0;
    font-size: 15px;
    line-height: 20px;
}

.mint-msgbox-confirm {
    background: $warning;
    color: #fff;
}

//多选单选
.mint-checkbox-input:checked+.mint-checkbox-core {
    background-color: $warning;
    border-color: $warning;
}

.mint-radio-input:checked+.mint-radio-core {
    background-color: $warning;
    border-color: $warning;
}

//眼睛
.eye-icon {
    display: block;
    width: 25px;
    height: 25px;
    background: url('~assets/common/images/eye.png') no-repeat;
    background-size: 100% 100%;
    &.eye-close-icon {
        background: url('~assets/common/images/eye-close.png') no-repeat;
        background-size: 100% 100%;
    }
}

//按钮
.cell-btn {
    background: $yellow;
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin: 0.8rem auto;
    border-radius: 2px;
    padding: 10px 0;
    &.green {
        background: #01cd0c !important;
    }
    &.gray {
        background: #fff !important;
        color: $gray;
        border: 1px solid $gray;
    }
    &.bordered {
        background: #fff !important;
        color: $yellow;
        border: 1px solid $yellow;
    }
}

.disabled-btn {
    background: #f4f4f4 !important;
    color: #ccc !important;
    pointer-events: none;
    cursor: default;
}

//单选框
//switch 颜色
.mint-switch-input:checked+.mint-switch-core {
    border-color: #ff6700 !important;
    background-color: #ff6700 !important;
}

//地区选择器 文字颜色
.distpicker-address-wrapper {
    font-size: 15px !important;
    color: #333 !important;
    height: 100%;
    .address-container {
        height: 100%;
    }
    .address-header {
        border-bottom: 1px solid #eee;
        ul {
            justify-content: flex-start !important;
            li {
                padding: 10px 10px !important;
                &.active {
                    color: $warning !important;
                    border-bottom: $warning solid 1px !important;
                }
            }
        }
    }
    li {
        padding: 12px 10px !important;
        border: none !important;
        &.active {
            color: $warning !important;
        }
    }
}

//arrow-right icon
.arrow-right {
    display: block;
    width: 16px;
    height: 20px;
    background: url('~assets/common/images/arrow-right.png') no-repeat;
    background-size: 100%;
}

.starList {
    //星星
    margin-top: 5px;
    @include flexbox(flex-end,
    center,
    row,
    nowrap);
    .star {
        display: block;
        width: 14px;
        height: 14px;
        background: url('~assets/common/images/star-h.png') no-repeat;
        background-size: 100%;
    }
    .blur {
        display: block;
        width: 14px;
        height: 14px;
        background: url('~assets/common/images/star-n.png') no-repeat;
        background-size: 100%;
    }
}

//图片懒加载展位图
img[lazy] {
    opacity: 1;
    transition: opacity 0.3s ease-in;
    -webkit-transition: opacity 0.3s ease-in;
}

img[lazy='loading'] {
    opacity: 0;
    background: #f5f5f5;
    visibility: hidden;
    margin: auto;
}

img[lazy='loaded'] {
    opacity: 1;
    visibility: visible;
}

.sui-cart {
    .mint-cell-wrapper {
        line-height: normal !important;
        background-image: linear-gradient( 180deg, #e8ecef, #e8ecef 50%, transparent 50%) !important;
    }
    .mint-cell-swipe-button {
        display: flex;
        align-items: center;
    }
}

.my-header {
    padding: $padding;
    @include flexbox(space-between,
    center,
    row,
    nowrap);
    border-bottom: 1px solid $border;
    .back {
        display: block;
        min-width: 0.65rem;
        font-size: 24px;
    }
    strong {
        font-size: 18px;
        font-weight: normal;
        color: #333;
    }
}